package cn.wolfcode.trip.base.domain;

import lombok.Getter;
import lombok.Setter;

@Setter@Getter
public class Like  extends BaseDomain{

    private Long  authorId;//被点赞的人的ID
    private User liker;//点赞人的ID
    private Integer state=1;//1表示游记点赞,2表示评论点赞
    private Long bindId;//绑定的ID,配合状态使用
    private Integer hasRead;//标记是否已读

    public String getStateName(){
        String stateName="点赞了你的游记";
        if (state==2) {
            stateName="点赞了你的评论";
        }
        return stateName;
    }
}